package com.hhl.storage.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.hhl.storage.service.StorageService;

@RestController
public class StorageController {

    @Autowired
    private StorageService storageService;

    @GetMapping("/rpc")
    public String rpc(@RequestParam("value") String value) {
        return storageService.rpc(value);
    }
}
